/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.whitelist.service;

import java.util.List;

import com.jeeplus.modules.work.FCJJD.mapper.StreetWindowMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.jeeplus.modules.whitelist.entity.UserIp;
import com.jeeplus.modules.whitelist.mapper.UserIpMapper;

/**
 * 白名单Service
 * @author 艾忠金
 * @version 2023-08-31
 */
@Service
@Transactional(readOnly = true)
public class UserIpService extends CrudService<UserIpMapper, UserIp> {
	@Autowired
	private UserIpMapper userIpMapper;
	public UserIp get(String id) {
		return super.get(id);
	}
	
	public List<UserIp> findList(UserIp userIp) {
		return super.findList(userIp);
	}
	
	public Page<UserIp> findPage(Page<UserIp> page, UserIp userIp) {
		return super.findPage(page, userIp);
	}
	
	@Transactional(readOnly = false)
	public void save(UserIp userIp) {
		super.save(userIp);
	}
	
	@Transactional(readOnly = false)
	public void delete(UserIp userIp) {
		super.delete(userIp);
	}
	@Transactional(readOnly = false)
	public int insertBackIp(String ip,String remark,String method){
		return userIpMapper.insertBackIp(ip,remark,method);
	}
	public int findBackIp(String ip){
		return userIpMapper.findBackIp(ip);
	}
}